package com.scedu.utils;

public class MathUtil {
    /*
    比较两个金额是否相等
     */
    private  static  final  Double MONEYRANGE=0.01;
    public  static  Boolean equals(Double d1,Double d2){
       Double result= Math.abs(d1-d2);
       if (result<MONEYRANGE){
           return true;
       }else {
           return false;
       }
    }

}
